wpt->gc_data.terr = atof(s) * 10;
} else
if (strcmp(fmp->key, "GEOCACHE_TYPE") == 0) {
- /* Geocache Type - TODO */
- /* wpt->gc_data.type = gs_mktype(s);*/
-
+ /* Geocache Type */
+ wpt->gc_data.type = gs_mktype(s);
+ } else
+ if (strcmp(fmp->key, "GEOCACHE_CONTAINER") == 0) {
+ wpt->gc_data.container = gs_mkcont(s);
} else {
warning( MYNAME ": Unknown style directive: %s\n", fmp->key);
}
for (i = 0; i < sz; i++) {
if (t == gs_container_map[i].type) {
- return gs_type_map[i].name;
+ return gs_container_map[i].name;
}
}
return "Unknown";